import 'package:json_annotation/json_annotation.dart'; 
  
part 'invite_info_model.g.dart';

// 通过邀请码获取邀请人信息
@JsonSerializable()
  class InviteInfoModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  Data data;

  InviteInfoModel(this.code,this.message,this.data,);

  factory InviteInfoModel.fromJson(Map<String, dynamic> srcJson) => _$InviteInfoModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$InviteInfoModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'nickname')
  String nickname;

  @JsonKey(name: 'headimgurl')
  String headimgurl;

  @JsonKey(name: 'sex')
  String sex;

  Data(this.nickname,this.headimgurl,this.sex,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
